import { nextTick } from 'vue';

const setLayout = (customClass = 'layout-content-custom', targetClass = 'layout-content') => {
    nextTick(() => {
        document.querySelector(`.${targetClass}`)?.classList?.add(customClass);
    });
};

const resetLayout = (customClass = 'layout-content-custom', targetClass = 'layout-content') => {
    document.querySelector(`.${targetClass}`) &&
        document.querySelector(`.${targetClass}`)?.classList?.remove(customClass);
};

export { setLayout, resetLayout };
